package com.cq.hd.system.api;

import com.cq.hd.common.response.Result;
import com.cq.hd.system.api.dto.WithdrawalConfigSaveDto;
import com.cq.hd.system.api.vo.WithdrawalConfigVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "hd-o2o-system-service", contextId = "withdrawal-config-api")
public interface TbWithdrawalConfigApi {

    // 查询
    @GetMapping("/system/withdrawalConfig/details")
    Result<WithdrawalConfigVo> details(@RequestParam("withdrawalUserType") Integer withdrawalUserType, @RequestParam("financialAccountType") Integer financialAccountType);

    // 保存
    @PostMapping("/system/withdrawalConfig/saveWithdrawalConfig")
    Result<Object> saveWithdrawalConfig(@RequestBody WithdrawalConfigSaveDto withdrawalConfigSaveDto);

}
